<?php get_header(); ?>
 <?php get_sidebar(); ?>
<div id="columns">
  <div id="centercol">
    <?php $urlHome = get_bloginfo('template_directory'); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="box post" id="post-<?php the_ID(); ?>">
      <div class="content">
        <div class="post-title">
          <h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
            <?php the_title(); ?>
            </a></h2>
        </div>
        <!--/post-title -->
        <div class="social-links">On
          <?php the_time('M.d.y'); ?>
          , In
          <?php the_category(', ') ?>
          by
          <?php the_author_posts_link(); ?>
          | <a href="<?php the_permalink(); ?>" title="View <?php _e('Comments'); ?>">
          <?php comments_number(0, 1, '%'); ?>
          <?php _e('Comments'); ?>
          </a>
          <div class="clr"></div>
        </div>
        <!--/social-links -->
        <?php $postimageurl = get_post_meta($post->ID, 'post-img', true); if ($postimageurl) { ?>
        <div class="pic"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php echo $postimageurl; ?>" alt="<?php the_title_attribute(); ?>" /></a></div>
        <?php } ?>
        <!--/post-img -->
        <div class="post-excerpt">
          <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
        </div>
        <!--/post-excerpt -->
        <div class="clr"></div>
      </div>  
    </div>      
    <?php comments_template(); ?>
    <?php endwhile; else: ?>
    <p>Sorry, no posts matched your criteria.</p>
    <?php endif; ?>
  </div></div></div><center>
<?php get_footer(); ?></center>
